package com._54programer.ws;

public class Const {
	
	public static final String SUCCESS = "000000";//状态吗
	public static final String FAILED = "000001";//状态码
	public static final String SUCCESS_MSG = "SUCCESS";//状态描述
	public static final String FAILED_MSG = "FAILED";//状态描述
	
	

	/**心跳*/
	public static final String HEART_BEAT = "heartbeat";
	
	/**绑定*/
	public static final String BIND_GROUP_SERVICE = "bindgroup";
	/**绑定返回码*/
	public static final int BIND_GROUP_REP_CODE = 100001;
	
	
	/**消息类型**/
	public static final int BY_GROUPID 	= 0;//群组ID消息
	public static final int BY_NONE 	= 1;//群组ID消息
	public static final int BY_UID 		= 2;//UID
	public static final int BY_USERNAME 	= 3;//USERNAME
	
	
	public static final int PER_MESSAGE = 1;//个人消息
	public static final int GROUP_MESSAGE = 2;//群组消息
	public static final int BROCAST_MESSAGE = 3;//广播消息
	
	public static final String CLUSTER_SERVICE = "clustermessage";
	public static final String NOTICE_GROUP_SERVICE = "noticemessage";
	public static final String ALL_SERVICE = "allmessage";
	public static final String SERVER_INFO = "serverInfo-CacheMap";
	public static final String CACHE_KEYS = "cahce-keys";
	public static final String DB0 = "cahce-db-0";
	public static final String DB1 = "cahce-db-1";
	public static final String TOKEN = "USER-TOKEN";//用户token缓存
	public static final String ROBOT = "USER-ROBOT";//游客用户
	
	
}
